Integrand size = 25, antiderivative size = 285 \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c+d \sin (e+f x))^3} \, dx=\frac {d^2 \left (12 c^2+16 c d+7 d^2\right ) \arctan \left (\frac {d+c \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {c^2-d^2}}\right )}{9 (c-d)^4 (c+d)^2 \sqrt {c^2-d^2} f}-\frac {d \left (2 c^2-16 c d-21 d^2\right ) \cos (e+f x)}{54 (c-d)^3 (c+d) f (c+d \sin (e+f x))^2}-\frac {(c-8 d) \cos (e+f x)}{27 (c-d)^2 f (1+\sin (e+f x)) (c+d \sin (e+f x))^2}-\frac {\cos (e+f x)}{3 (c-d) f (3+3 \sin (e+f x))^2 (c+d \sin (e+f x))^2}-\frac {d \left (2 c^3-16 c^2 d-59 c d^2-32 d^3\right ) \cos (e+f x)}{54 (c-d)^4 (c+d)^2 f (c+d \sin (e+f x))} \]
[Out]
Time = 0.43 (sec) , antiderivative size = 294, normalized size of antiderivative = 1.03, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {2845, 3057, 2833, 12, 2739, 632, 210} \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c+d \sin (e+f x))^3} \, dx=\frac {d^2 \left (12 c^2+16 c d+7 d^2\right ) \arctan \left (\frac {c \tan \left (\frac {1}{2} (e+f x)\right )+d}{\sqrt {c^2-d^2}}\right )}{a^2 f (c-d)^4 (c+d)^2 \sqrt {c^2-d^2}}-\frac {d \left (2 c^2-16 c d-21 d^2\right ) \cos (e+f x)}{6 a^2 f (c-d)^3 (c+d) (c+d \sin (e+f x))^2}-\frac {d \left (2 c^3-16 c^2 d-59 c d^2-32 d^3\right ) \cos (e+f x)}{6 a^2 f (c-d)^4 (c+d)^2 (c+d \sin (e+f x))}-\frac {(c-8 d) \cos (e+f x)}{3 a^2 f (c-d)^2 (\sin (e+f x)+1) (c+d \sin (e+f x))^2}-\frac {\cos (e+f x)}{3 f (c-d) (a \sin (e+f x)+a)^2 (c+d \sin (e+f x))^2} \]
[In]
[Out]
Rule 12
Rule 210
Rule 632
Rule 2739
Rule 2833
Rule 2845
Rule 3057
Rubi steps \begin{align*} \text {integral}& = -\frac {\cos (e+f x)}{3 (c-d) f (a+a \sin (e+f x))^2 (c+d \sin (e+f x))^2}-\frac {\int \frac {-a (c-5 d)-3 a d \sin (e+f x)}{(a+a \sin (e+f x)) (c+d \sin (e+f x))^3} \, dx}{3 a^2 (c-d)} \\ & = -\frac {(c-8 d) \cos (e+f x)}{3 a^2 (c-d)^2 f (1+\sin (e+f x)) (c+d \sin (e+f x))^2}-\frac {\cos (e+f x)}{3 (c-d) f (a+a \sin (e+f x))^2 (c+d \sin (e+f x))^2}+\frac {\int \frac {21 a^2 d^2+2 a^2 (c-8 d) d \sin (e+f x)}{(c+d \sin (e+f x))^3} \, dx}{3 a^4 (c-d)^2} \\ & = -\frac {d \left (2 c^2-16 c d-21 d^2\right ) \cos (e+f x)}{6 a^2 (c-d)^3 (c+d) f (c+d \sin (e+f x))^2}-\frac {(c-8 d) \cos (e+f x)}{3 a^2 (c-d)^2 f (1+\sin (e+f x)) (c+d \sin (e+f x))^2}-\frac {\cos (e+f x)}{3 (c-d) f (a+a \sin (e+f x))^2 (c+d \sin (e+f x))^2}-\frac {\int \frac {-2 a^2 d^2 (19 c+16 d)-a^2 d \left (2 c (c-8 d)-21 d^2\right ) \sin (e+f x)}{(c+d \sin (e+f x))^2} \, dx}{6 a^4 (c-d)^3 (c+d)} \\ & = -\frac {d \left (2 c^2-16 c d-21 d^2\right ) \cos (e+f x)}{6 a^2 (c-d)^3 (c+d) f (c+d \sin (e+f x))^2}-\frac {(c-8 d) \cos (e+f x)}{3 a^2 (c-d)^2 f (1+\sin (e+f x)) (c+d \sin (e+f x))^2}-\frac {\cos (e+f x)}{3 (c-d) f (a+a \sin (e+f x))^2 (c+d \sin (e+f x))^2}-\frac {d \left (2 c^3-16 c^2 d-59 c d^2-32 d^3\right ) \cos (e+f x)}{6 a^2 (c-d)^4 (c+d)^2 f (c+d \sin (e+f x))}+\frac {\int \frac {3 a^2 d^2 \left (12 c^2+16 c d+7 d^2\right )}{c+d \sin (e+f x)} \, dx}{6 a^4 (c-d)^4 (c+d)^2} \\ & = -\frac {d \left (2 c^2-16 c d-21 d^2\right ) \cos (e+f x)}{6 a^2 (c-d)^3 (c+d) f (c+d \sin (e+f x))^2}-\frac {(c-8 d) \cos (e+f x)}{3 a^2 (c-d)^2 f (1+\sin (e+f x)) (c+d \sin (e+f x))^2}-\frac {\cos (e+f x)}{3 (c-d) f (a+a \sin (e+f x))^2 (c+d \sin (e+f x))^2}-\frac {d \left (2 c^3-16 c^2 d-59 c d^2-32 d^3\right ) \cos (e+f x)}{6 a^2 (c-d)^4 (c+d)^2 f (c+d \sin (e+f x))}+\frac {\left (d^2 \left (12 c^2+16 c d+7 d^2\right )\right ) \int \frac {1}{c+d \sin (e+f x)} \, dx}{2 a^2 (c-d)^4 (c+d)^2} \\ & = -\frac {d \left (2 c^2-16 c d-21 d^2\right ) \cos (e+f x)}{6 a^2 (c-d)^3 (c+d) f (c+d \sin (e+f x))^2}-\frac {(c-8 d) \cos (e+f x)}{3 a^2 (c-d)^2 f (1+\sin (e+f x)) (c+d \sin (e+f x))^2}-\frac {\cos (e+f x)}{3 (c-d) f (a+a \sin (e+f x))^2 (c+d \sin (e+f x))^2}-\frac {d \left (2 c^3-16 c^2 d-59 c d^2-32 d^3\right ) \cos (e+f x)}{6 a^2 (c-d)^4 (c+d)^2 f (c+d \sin (e+f x))}+\frac {\left (d^2 \left (12 c^2+16 c d+7 d^2\right )\right ) \text {Subst}\left (\int \frac {1}{c+2 d x+c x^2} \, dx,x,\tan \left (\frac {1}{2} (e+f x)\right )\right )}{a^2 (c-d)^4 (c+d)^2 f} \\ & = -\frac {d \left (2 c^2-16 c d-21 d^2\right ) \cos (e+f x)}{6 a^2 (c-d)^3 (c+d) f (c+d \sin (e+f x))^2}-\frac {(c-8 d) \cos (e+f x)}{3 a^2 (c-d)^2 f (1+\sin (e+f x)) (c+d \sin (e+f x))^2}-\frac {\cos (e+f x)}{3 (c-d) f (a+a \sin (e+f x))^2 (c+d \sin (e+f x))^2}-\frac {d \left (2 c^3-16 c^2 d-59 c d^2-32 d^3\right ) \cos (e+f x)}{6 a^2 (c-d)^4 (c+d)^2 f (c+d \sin (e+f x))}-\frac {\left (2 d^2 \left (12 c^2+16 c d+7 d^2\right )\right ) \text {Subst}\left (\int \frac {1}{-4 \left (c^2-d^2\right )-x^2} \, dx,x,2 d+2 c \tan \left (\frac {1}{2} (e+f x)\right )\right )}{a^2 (c-d)^4 (c+d)^2 f} \\ & = \frac {d^2 \left (12 c^2+16 c d+7 d^2\right ) \arctan \left (\frac {d+c \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {c^2-d^2}}\right )}{a^2 (c-d)^4 (c+d)^2 \sqrt {c^2-d^2} f}-\frac {d \left (2 c^2-16 c d-21 d^2\right ) \cos (e+f x)}{6 a^2 (c-d)^3 (c+d) f (c+d \sin (e+f x))^2}-\frac {(c-8 d) \cos (e+f x)}{3 a^2 (c-d)^2 f (1+\sin (e+f x)) (c+d \sin (e+f x))^2}-\frac {\cos (e+f x)}{3 (c-d) f (a+a \sin (e+f x))^2 (c+d \sin (e+f x))^2}-\frac {d \left (2 c^3-16 c^2 d-59 c d^2-32 d^3\right ) \cos (e+f x)}{6 a^2 (c-d)^4 (c+d)^2 f (c+d \sin (e+f x))} \\ \end{align*}
Time = 3.26 (sec) , antiderivative size = 335, normalized size of antiderivative = 1.18 \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c+d \sin (e+f x))^3} \, dx=\frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (4 (c-d) \sin \left (\frac {1}{2} (e+f x)\right )-2 (c-d) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )+4 (c-10 d) \sin \left (\frac {1}{2} (e+f x)\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^2+\frac {6 d^2 \left (12 c^2+16 c d+7 d^2\right ) \arctan \left (\frac {d+c \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {c^2-d^2}}\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3}{(c+d)^2 \sqrt {c^2-d^2}}+\frac {3 (c-d) d^3 \cos (e+f x) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3}{(c+d) (c+d \sin (e+f x))^2}+\frac {3 d^3 (7 c+4 d) \cos (e+f x) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3}{(c+d)^2 (c+d \sin (e+f x))}\right )}{54 (c-d)^4 f (1+\sin (e+f x))^2} \]
[In]
[Out]
Time = 3.58 (sec) , antiderivative size = 378, normalized size of antiderivative = 1.33
method | result | size |
derivativedivides | \(\frac {-\frac {2 \left (c -4 d \right )}{\left (c -d \right )^{4} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )}-\frac {4}{3 \left (c -d \right )^{3} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3}}+\frac {2}{\left (c -d \right )^{3} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{2}}+\frac {2 d^{2} \left (\frac {\frac {d^{2} \left (9 c^{2}+4 c d -2 d^{2}\right ) \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 c \left (c^{2}+2 c d +d^{2}\right )}+\frac {d \left (8 c^{4}+4 c^{3} d +15 c^{2} d^{2}+8 d^{3} c -2 d^{4}\right ) \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 c^{2} \left (c^{2}+2 c d +d^{2}\right )}+\frac {d^{2} \left (23 c^{2}+12 c d -2 d^{2}\right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{2 \left (c^{2}+2 c d +d^{2}\right ) c}+\frac {d \left (8 c^{2}+4 c d -d^{2}\right )}{2 c^{2}+4 c d +2 d^{2}}}{{\left (\left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right ) c +2 d \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+c \right )}^{2}}+\frac {\left (12 c^{2}+16 c d +7 d^{2}\right ) \arctan \left (\frac {2 c \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+2 d}{2 \sqrt {c^{2}-d^{2}}}\right )}{2 \left (c^{2}+2 c d +d^{2}\right ) \sqrt {c^{2}-d^{2}}}\right )}{\left (c -d \right )^{4}}}{a^{2} f}\) | \(378\) |
default | \(\frac {-\frac {2 \left (c -4 d \right )}{\left (c -d \right )^{4} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )}-\frac {4}{3 \left (c -d \right )^{3} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3}}+\frac {2}{\left (c -d \right )^{3} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{2}}+\frac {2 d^{2} \left (\frac {\frac {d^{2} \left (9 c^{2}+4 c d -2 d^{2}\right ) \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 c \left (c^{2}+2 c d +d^{2}\right )}+\frac {d \left (8 c^{4}+4 c^{3} d +15 c^{2} d^{2}+8 d^{3} c -2 d^{4}\right ) \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 c^{2} \left (c^{2}+2 c d +d^{2}\right )}+\frac {d^{2} \left (23 c^{2}+12 c d -2 d^{2}\right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{2 \left (c^{2}+2 c d +d^{2}\right ) c}+\frac {d \left (8 c^{2}+4 c d -d^{2}\right )}{2 c^{2}+4 c d +2 d^{2}}}{{\left (\left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right ) c +2 d \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+c \right )}^{2}}+\frac {\left (12 c^{2}+16 c d +7 d^{2}\right ) \arctan \left (\frac {2 c \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+2 d}{2 \sqrt {c^{2}-d^{2}}}\right )}{2 \left (c^{2}+2 c d +d^{2}\right ) \sqrt {c^{2}-d^{2}}}\right )}{\left (c -d \right )^{4}}}{a^{2} f}\) | \(378\) |
risch | \(\text {Expression too large to display}\) | \(1076\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 1728 vs. \(2 (281) = 562\).
Time = 0.38 (sec) , antiderivative size = 3540, normalized size of antiderivative = 12.42 \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c+d \sin (e+f x))^3} \, dx=\text {Too large to display} \]
[In]
[Out]
Timed out. \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c+d \sin (e+f x))^3} \, dx=\text {Timed out} \]
[In]
[Out]
Exception generated. \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c+d \sin (e+f x))^3} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 594 vs. \(2 (281) = 562\).
Time = 0.38 (sec) , antiderivative size = 594, normalized size of antiderivative = 2.08 \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c+d \sin (e+f x))^3} \, dx=\frac {\frac {3 \, {\left (12 \, c^{2} d^{2} + 16 \, c d^{3} + 7 \, d^{4}\right )} {\left (\pi \left \lfloor \frac {f x + e}{2 \, \pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (c\right ) + \arctan \left (\frac {c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + d}{\sqrt {c^{2} - d^{2}}}\right )\right )}}{{\left (a^{2} c^{6} - 2 \, a^{2} c^{5} d - a^{2} c^{4} d^{2} + 4 \, a^{2} c^{3} d^{3} - a^{2} c^{2} d^{4} - 2 \, a^{2} c d^{5} + a^{2} d^{6}\right )} \sqrt {c^{2} - d^{2}}} + \frac {3 \, {\left (9 \, c^{3} d^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 4 \, c^{2} d^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} - 2 \, c d^{6} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 8 \, c^{4} d^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 4 \, c^{3} d^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 15 \, c^{2} d^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 8 \, c d^{6} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 2 \, d^{7} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 23 \, c^{3} d^{4} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 12 \, c^{2} d^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 2 \, c d^{6} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 8 \, c^{4} d^{3} + 4 \, c^{3} d^{4} - c^{2} d^{5}\right )}}{{\left (a^{2} c^{8} - 2 \, a^{2} c^{7} d - a^{2} c^{6} d^{2} + 4 \, a^{2} c^{5} d^{3} - a^{2} c^{4} d^{4} - 2 \, a^{2} c^{3} d^{5} + a^{2} c^{2} d^{6}\right )} {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 2 \, d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + c\right )}^{2}} - \frac {2 \, {\left (3 \, c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 12 \, d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 3 \, c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 21 \, d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 2 \, c - 11 \, d\right )}}{{\left (a^{2} c^{4} - 4 \, a^{2} c^{3} d + 6 \, a^{2} c^{2} d^{2} - 4 \, a^{2} c d^{3} + a^{2} d^{4}\right )} {\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{3}}}{3 \, f} \]
[In]
[Out]
Time = 11.05 (sec) , antiderivative size = 1199, normalized size of antiderivative = 4.21 \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c+d \sin (e+f x))^3} \, dx=\frac {\frac {-4\,c^5+14\,c^4\,d+40\,c^3\,d^2+46\,c^2\,d^3+12\,c\,d^4-3\,d^5}{3\,\left (c+d\right )\,\left (c^2-d^2\right )\,\left (c^3-3\,c^2\,d+3\,c\,d^2-d^3\right )}+\frac {{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^5\,\left (-2\,c^6+4\,c^5\,d+38\,c^4\,d^2+40\,c^3\,d^3+23\,c^2\,d^4+4\,c\,d^5-2\,d^6\right )}{c^2\,\left (c^5-3\,c^4\,d+2\,c^3\,d^2+2\,c^2\,d^3-3\,c\,d^4+d^5\right )}+\frac {2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3\,\left (-6\,c^6+16\,c^5\,d+102\,c^4\,d^2+212\,c^3\,d^3+177\,c^2\,d^4+33\,c\,d^5-9\,d^6\right )}{3\,c^2\,\left (c^2-d^2\right )\,\left (c^3-3\,c^2\,d+3\,c\,d^2-d^3\right )}+\frac {\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (-6\,c^5+20\,c^4\,d+114\,c^3\,d^2+160\,c^2\,d^3+33\,c\,d^4-6\,d^5\right )}{3\,c\,\left (c^2-d^2\right )\,\left (c^3-3\,c^2\,d+3\,c\,d^2-d^3\right )}+\frac {{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2\,\left (-14\,c^7+16\,c^6\,d+226\,c^5\,d^2+532\,c^4\,d^3+583\,c^3\,d^4+232\,c^2\,d^5+6\,c\,d^6-6\,d^7\right )}{3\,c^2\,\left (c+d\right )\,\left (c^2-d^2\right )\,\left (c^3-3\,c^2\,d+3\,c\,d^2-d^3\right )}+\frac {{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4\,\left (-16\,c^7+14\,c^6\,d+220\,c^5\,d^2+502\,c^4\,d^3+522\,c^3\,d^4+303\,c^2\,d^5+48\,c\,d^6-18\,d^7\right )}{3\,c^2\,\left (c+d\right )\,\left (c^2-d^2\right )\,\left (c^3-3\,c^2\,d+3\,c\,d^2-d^3\right )}+\frac {{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^6\,\left (-2\,c^6+4\,c^5\,d+14\,c^4\,d^2+8\,c^3\,d^3+9\,c^2\,d^4+4\,c\,d^5-2\,d^6\right )}{c\,\left (c-d\right )\,\left (c^2+2\,c\,d+d^2\right )\,\left (c^3-3\,c^2\,d+3\,c\,d^2-d^3\right )}}{f\,\left (\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (3\,a^2\,c^2+4\,d\,a^2\,c\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2\,\left (5\,a^2\,c^2+12\,a^2\,c\,d+4\,a^2\,d^2\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^5\,\left (5\,a^2\,c^2+12\,a^2\,c\,d+4\,a^2\,d^2\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3\,\left (7\,a^2\,c^2+16\,a^2\,c\,d+12\,a^2\,d^2\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4\,\left (7\,a^2\,c^2+16\,a^2\,c\,d+12\,a^2\,d^2\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^6\,\left (3\,a^2\,c^2+4\,d\,a^2\,c\right )+a^2\,c^2+a^2\,c^2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^7\right )}-\frac {d^2\,\mathrm {atan}\left (\frac {\frac {d^2\,\left (12\,c^2+16\,c\,d+7\,d^2\right )\,\left (-2\,a^2\,c^6\,d+4\,a^2\,c^5\,d^2+2\,a^2\,c^4\,d^3-8\,a^2\,c^3\,d^4+2\,a^2\,c^2\,d^5+4\,a^2\,c\,d^6-2\,a^2\,d^7\right )}{2\,a^2\,{\left (c+d\right )}^{5/2}\,{\left (c-d\right )}^{9/2}}+\frac {c\,d^2\,\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (12\,c^2+16\,c\,d+7\,d^2\right )\,\left (-a^2\,c^6+2\,a^2\,c^5\,d+a^2\,c^4\,d^2-4\,a^2\,c^3\,d^3+a^2\,c^2\,d^4+2\,a^2\,c\,d^5-a^2\,d^6\right )}{a^2\,{\left (c+d\right )}^{5/2}\,{\left (c-d\right )}^{9/2}}}{12\,c^2\,d^2+16\,c\,d^3+7\,d^4}\right )\,\left (12\,c^2+16\,c\,d+7\,d^2\right )}{a^2\,f\,{\left (c+d\right )}^{5/2}\,{\left (c-d\right )}^{9/2}} \]
[In]
[Out]